export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  addBtn:false,
  editBtn:false,
  delBtn:false,
  selection:true,
  selectable: row => {
    return row.approvalStatus == '0'
  },
  searchMenuSpan: 6,
  height: 450,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      hide:true,
    },	  {
      "type": "input",
      "label": "线路编码，不能重复",
      "prop": "lineCode",
      hide:true,
    },	  {
      "type": "input",
      "label": "线路编码，不能重复",
      "prop": "stationCode",
      hide:true,
    },	 {
      "type": "select",
      "label": "售票员",
      "prop": "conductorName",
      "searchLabelWidth":90,
      search: true,
      component: 'user-select',
      params: {
        userCodeKey: 'conductorJobNo',
        operateNo: "deviceOperateNum"
      },
      rules:[{
        required:true,
        message:"请输入售票员！",
        trigger:"blur"
      }]
    }, {
      "type": "input",
      "label": "售票员工号",
      "prop": "conductorJobNo",
      hide: true,
    }, {
      "type": "select",
      "label": "售票员班次",
      "prop": "conductorShifts",
      //search: "true",
      //hide: true,
      dicUrl: '/admin/dict/type/stm_conductor_shift',
    },  {
      "type": "date",
      "label": "记账时间",
      "prop": "accountTime",
      search:true,
      searchRange:true,
      searchSpan:12,
      format:"yyyy-MM-dd",
      valueFormat:"yyyy-MM-dd"
    },	  {
      "type": "number",
      "label": "售卖张数",
      "prop": "totalSellNum"
    },	  {
      "type": "number",
      "label": "售卖金额",
      "prop": "totalSellAmount",
	  precision: 2,
    },	  {
      "type": "number",
      "label": "转账金额",
      "prop": "totalTransferAmount",
	  precision: 2,
    },	  {
      "type": "select",
      "label": "提交状态",
      "prop": "approvalStatus",
      dicUrl:'/admin/dict/type/sw_st_electronicreceipt_status',
      search:true,
    },	  {
      "type": "input",
      "label": "备注",
      "prop": "remark",
      hide:true,
    },	  {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      hide:true,
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      hide:true,
    },	  {
      "type": "input",
      "label": "创建人名称",
      "prop": "creatorName",
      hide:true,
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide:true,
    },	  {
      "type": "input",
      "label": "数据更新时间",
      "prop": "updateTime",
      hide:true,
    },	  {
      "type": "input",
      "label": "删除标志 1：删除 0：未删",
      "prop": "delFlag",
      hide:true,
    }  ]
}
